package com.gzbsoft.sc.modules.sys.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.DocEmbedded;
import io.ebean.annotation.DocStore;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@DocStore
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@Entity
@DbComment("商品配置基本表")
@Table(name = "jx_good_specs")
public class JxGoodSpecs extends BaseEntity {
    @DocEmbedded(doc = "id")
    @JsonIgnore
    @OneToOne
    @JoinColumn(name = "jx_good_sort_id")
    private JxGoodSort goodSort;
    @DbComment("名称")
    private String name;
    @DbComment("是否必须")
    private Boolean required;
    @DbComment("品牌")
    private String brand;
    @DbComment("产地")
    private String origin;
    @DbComment("是否可搜索")
    private Boolean searchable;
    @DbComment("型号")
    private String model;
    @DbComment("类型")
    private String type;
}
